<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Partition_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-partition_id" data-rule="required" data-source="main/partition/index" class="form-control selectpage" name="row[partition_id]" type="text" value="{$row.partition_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Codes')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-codes" class="form-control " rows="5" name="row[codes]" cols="50">{$row.codes|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Paotui_post_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-paotui_post_id" data-rule="required" data-source="paotui/post/index" class="form-control selectpage" name="row[paotui_post_id]" type="text" value="{$row.paotui_post_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Take_user_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-take_user_id" data-rule="required" data-source="paotui/worker" data-field="poster_name" class="form-control selectpage" name="row[take_user_id]" type="text" value="{$row.take_user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Taketime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-taketime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[taketime]" type="text" value="{:$row.taketime?datetime($row.taketime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Takeimage')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-takeimage" class="form-control" size="50" name="row[takeimage]" type="textarea" value="{$row.takeimage|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-takeimage" class="btn btn-danger faupload" data-input-id="c-takeimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-takeimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-takeimage" class="btn btn-primary fachoose" data-input-id="c-takeimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-takeimage"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-takeimage"></ul>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
